<template>
<div class="nav">
  <ul>
    <router-link tag="li" to="/citylist">
    北京 <i class="iconfont icon-zhankai"></i>
    </router-link>

    <router-link tag="li" active-class="active" to="/movie/f-now"><span>热映</span></router-link>
    <router-link tag="li" active-class="active" to="/movie/f-hot"><span>待映</span> </router-link>
    <router-link tag="li" active-class="active" to="/movie/classic"><span>经典电影</span></router-link>
    
    <router-link tag="li" to="/search">
    <i class="iconfont icon-search"></i>
    </router-link>
  </ul>
  
</div>
</template>

<script>
export default {
 data () { 
return {
}
 },
 mounted () {
}
}
</script>

<style lang="scss" scoped>
.active{
  font-size: 17px;
      color: #333;
      font-weight: 700;
      border-bottom: 3px solid red;
}
.nav{
  position: fixed;
  left: 0;
  top: 50px;
  z-index: 22;
  height: 40px;
  width: 100%;
  line-height: 40px;
  border-bottom: 1px solid #ccc;
  background: #fff;
  text-align: center;
  font-size: 15px;
  
  ul{
    display: flex;
    li{
      flex: 1;
      .icon-zhankai{
        font-size: 8px;
        margin-left: -5px;
      }
    }
  }
}
</style>
